package com.gmail.at.jra.felipe.control;

import java.net.*;

/**
 * Class that controls the messages with the SMTP server.
 * */
public class SMTPHandler {
	/**
	 * I should use a better approach(config files, for ex.), but...
	 * If it where in PHP, I could use an array...
	 * */
	public static final String UOL_SMTP = "smtp.uol.com.br";
	public static final int UOL_PORT = 25; 
	public static final String GMAIL_SMTP = "smtp.google.com";
	public static final int GMAIL_PORT = 465;
	public static final String YAHOO_SMTP = "smtp.yahoo.com";
	public static final int YAHOO_PORT = 25;
	public static final String TERRA_SMTP = "smtp.terra.com.br";
	public static final int TERRA_PORT = 25;
	public static final String IG_SMTP = "smtp.ig.com.br";
	public static final int IG_PORT = 465;
	public static final String IBEST_SMTP = "smtp.ibest.com.br";
	public static final int IBEST_PORT = 465;
	// ... MORE TO COME :D
	
	private String message;
	private String from;
	private String to;
	private String subject;
	private String username;
	private String password;
	
	private Socket remoteServer;
	
	public SMTPHandler(String username, String password)
	{
		this.username = username;
		this.password = password;
	}
	
	public boolean send()
	{
		return true;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	
	
	
	
}
